package anatex.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import anatex.domain.Keyword;
import javax.persistence.ManyToOne;
import anatex.domain.Document;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findKeywordDocumentsByKeywordAndDocument", "findKeywordDocumentsByDocument", "findKeywordDocumentsByKeyword" })
public class KeywordDocument {

    @ManyToOne
    private Keyword keyword;

    @ManyToOne
    private Document document;

    private Double weight;
    
}
